import { defineStore } from "pinia";
import { ref } from 'vue'

export const Schedules = defineStore("schedules", {
    state: () => {
        return {
            schedules: ref([])
        }
    },
    actions: {
        setSchedules(schedules) {
            this.schedules = schedules;
        },
        getSchedules() {
            return this.schedules;
        }
    },
    persist: {
        enabled: true,
    }
});
